package com.lzj.myvideo.service;

import com.lzj.myvideo.common.ServerResponse;
import com.shortvideo.pojo.User;
import org.springframework.web.multipart.MultipartFile;

public interface UserService {

    /**
     * 检查用户名是否存在
     * @param username
     * @return
     */
    public boolean checkUsernameIsExit(String username);

    public int saveUser(User user);

    public User findUser(User user);

    User queryUser(String userId);

    ServerResponse userFaceUpload(String userId, MultipartFile[] files);

    ServerResponse userBackgroundUpload(String userId, MultipartFile[] files);

    ServerResponse follow(String userId, String followId);

    ServerResponse unfollow(String fansId, String followId);

    Boolean isFollow(String userId, String followId);
}
